/* 900以上 */
@media screen and (min-width: 960px) {

    #page>[class~=page-navhome],
    #page>[class~=page-navlast] {
        display: none;
    }
}

/* 900以下 */
@media screen and (max-width: 960px) {

    #page>[class~=page-navhome],
    #page>[class~=page-last],
    #page>span {
        display: none;
    }
}

/* 600以下 */
@media screen and (max-width: 600px) {
    #page {
        flex-wrap: wrap;
    }

    #page>[class~=page-navhome] {
        display: block;
    }

    #page>[class~=page-num] {
        display: none;
    }
}